agent_resource_threshold
Configuration for Agent Resource Utilization Threshold resource.
Read/write properties
cpu_usage_threshold<Integer>
CPU usage threshold.
Maximum value =
slack_profile<String>
Slack Profile.
ctnsappname<String>
AppName.
feature<String>
feature.
duration<String>
duration of metric to be checked against threshold.
stylebook_flag<Boolean>
Stylebook threshold configuration true or false.
id<String>
Id is system generated key for all the Thresholds configuration .
Maximum length = 256
city<String>
City.
Maximum length = 256
country<String>
Country Code.
Maximum length = 256
sms_profile<String>
SMS Profile.
memory_usage_threshold<Integer>
Memory usage threshold.
Maximum value =
is_enabled<String>
true or false.
disk_usage_threshold<Integer>
Disk usage threshold.
Maximum value =
ip_address<String>
Field to store the ip address as it is along with any extension.
Maximum length = 512
group_name<String>
Group Name.
pagerduty_profile<String>
PagerDuty Profile.
name<String>
name.
region<String>
Region Code.
Maximum length = 256
reference_key<String>
Reference Key.
resource_type<String>
Resource Type.
exporter_id<Double>
Exporter Id.
rule<String>
Rule.
mail_profile<String>
Mail Profile.
servicenow_profile<String>
Servicenow Profile.
cpu_usage<Double>
Total CPU usage..
disk_count<Integer>
Shows for how long agent disk threshold breach, each value of count increases after every 5 minutes.
memory_usage<Double>
Total memory usage..
memory_count<Integer>
Shows for how long agent memory threshold breach, each value of count increases after every 5 minutes.
cpu_count<Integer>
Shows for how long agent cpu threshold breach, each value of count increases after every 5 minutes.
disk_usage<Double>
Total disk space usage..
agent_ip_address<String>
Agent IP Address for this threshold breach.
Read only properties
tenant_name<String>
Tenant Name.
Operations
NOTE: In request payload, Mandatory parameters are marked red and bold.
The following parameters can be used in the nitro request :
onerror <String_value>
Use this parameter to set the onerror status for nitro request. Applicable only for bulk requests.
Default value: EXIT
Possible values = EXIT, CONTINUE
URL:https://<MGMT-IP>/nitro/v2/config/agent_resource_threshold
Query-parameters:
filter
https://<MGMT-IP>/nitro/v2/config/agent_resource_threshold?filter=property-name1:property-value1,property-name2:property-value2
Use this query-parameter to get the filtered set of agent_resource_threshold resources configured on the system. You can set a filter on any property of the resource.
pagesize=#no&pageno=#no
https://<MGMT-IP>/nitro/v2/config/agent_resource_threshold?pagesize=#no&pageno=#no
Use this query-parameter to get the agent_resource_threshold resources in chunks.
count
https://<MGMT-IP>/nitro/v2/config/agent_resource_threshold?count=yes
Use this query-parameter to get the count of agent_resource_threshold resources.
HTTPS Method:GET
Request Headers:
Accept:application/json
X-NITRO-USER:username_value<String>
X-NITRO-PASS:password_value<String>
or
Cookie:NITRO_AUTH_TOKEN=token_value<String>
Response:
HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx
Response Headers:
Content-Type:application/json
Response Payload:JSON
{ "errorcode": 0, "message": "Done", "severity": <String_value>, "agent_resource_threshold":[{
"cpu_usage_threshold":<Integer_value>,
"slack_profile":<String_value>,
"ctnsappname":<String_value>,
"feature":<String_value>,
"duration":<String_value>,
"stylebook_flag":<Boolean_value>,
"id":<String_value>,
"city":<String_value>,
"country":<String_value>,
"sms_profile":<String_value>,
"memory_usage_threshold":<Integer_value>,
"is_enabled":<String_value>,
"disk_usage_threshold":<Integer_value>,
"ip_address":<String_value>,
"group_name":<String_value>,
"pagerduty_profile":<String_value>,
"name":<String_value>,
"region":<String_value>,
"reference_key":<String_value>,
"resource_type":<String_value>,
"tenant_name":<String_value>,
"exporter_id":<Double_value>,
"agent_down_time":<Integer_value>,
"rule":<String_value>,
"mail_profile":<String_value>,
"servicenow_profile":<String_value>,
"cpu_usage":<Double_value>,
"disk_count":<Integer_value>,
"memory_usage":<Double_value>,
"memory_count":<Integer_value>,
"cpu_count":<Integer_value>,
"disk_usage":<Double_value>,
"agent_ip_address":<String_value>}]}
URL:https://<MGMT-IP>/nitro/v2/config/agent_resource_threshold/id_value<String>
HTTPS Method:GET
Request Headers:
Accept:application/json
X-NITRO-USER:username_value<String>
X-NITRO-PASS:password_value<String>
or
Cookie:NITRO_AUTH_TOKEN=token_value<String>
Response:
HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx
Response Headers:
Content-Type:application/json
Response Payload:JSON
{ "errorcode": 0, "message": "Done", "severity": <String_value>, "agent_resource_threshold":[{
"cpu_usage_threshold":<Integer_value>,
"slack_profile":<String_value>,
"ctnsappname":<String_value>,
"feature":<String_value>,
"duration":<String_value>,
"stylebook_flag":<Boolean_value>,
"id":<String_value>,
"city":<String_value>,
"country":<String_value>,
"sms_profile":<String_value>,
"memory_usage_threshold":<Integer_value>,
"is_enabled":<String_value>,
"disk_usage_threshold":<Integer_value>,
"ip_address":<String_value>,
"group_name":<String_value>,
"pagerduty_profile":<String_value>,
"name":<String_value>,
"region":<String_value>,
"reference_key":<String_value>,
"resource_type":<String_value>,
"tenant_name":<String_value>,
"exporter_id":<Double_value>,
"agent_down_time":<Integer_value>,
"rule":<String_value>,
"mail_profile":<String_value>,
"servicenow_profile":<String_value>,
"cpu_usage":<Double_value>,
"disk_count":<Integer_value>,
"memory_usage":<Double_value>,
"memory_count":<Integer_value>,
"cpu_count":<Integer_value>,
"disk_usage":<Double_value>,
"agent_ip_address":<String_value>}]}
URL:https://<MGMT-IP>/nitro/v2/config/agent_resource_threshold/id_value<String>
HTTPS Method:PUT
Request Headers:
Content-Type:application/json
X-NITRO-USER:username_value<String>
X-NITRO-PASS:password_value<String>
or
Cookie:NITRO_AUTH_TOKEN=token_value<String>
Request Payload:JSON
{"agent_resource_threshold":{
"id":<String_value>,
"reference_key":<String_value>,
"region":<String_value>,
"resource_type":<String_value>,
"city":<String_value>,
"pagerduty_profile":<String_value>,
"slack_profile":<String_value>,
"ctnsappname":<String_value>,
"ip_address":<String_value>,
"agent_ip_address":<String_value>,
"cpu_usage_threshold":<Integer_value>,
"group_name":<String_value>,
"duration":<String_value>,
"stylebook_flag":<Boolean_value>,
"name":<String_value>,
"feature":<String_value>,
"servicenow_profile":<String_value>,
"memory_usage":<Double_value>,
"disk_count":<Integer_value>,
"memory_usage_threshold":<Integer_value>,
"disk_usage_threshold":<Integer_value>,
"cpu_usage":<Double_value>,
"is_enabled":<String_value>,
"cpu_count":<Integer_value>,
"disk_usage":<Double_value>,
"exporter_id":<Double_value>,
"country":<String_value>,
"memory_count":<Integer_value>,
"sms_profile":<String_value>,
"mail_profile":<String_value>,
"rule":<String_value>}}
Response:
HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx
Response Payload:JSON
{ "errorcode": 0, "message": "Done", "severity": <String_value>, "agent_resource_threshold":[{
"cpu_usage_threshold":<Integer_value>,
"slack_profile":<String_value>,
"ctnsappname":<String_value>,
"feature":<String_value>,
"duration":<String_value>,
"stylebook_flag":<Boolean_value>,
"id":<String_value>,
"city":<String_value>,
"country":<String_value>,
"sms_profile":<String_value>,
"memory_usage_threshold":<Integer_value>,
"is_enabled":<String_value>,
"disk_usage_threshold":<Integer_value>,
"ip_address":<String_value>,
"group_name":<String_value>,
"pagerduty_profile":<String_value>,
"name":<String_value>,
"region":<String_value>,
"reference_key":<String_value>,
"resource_type":<String_value>,
"tenant_name":<String_value>,
"exporter_id":<Double_value>,
"agent_down_time":<Integer_value>,
"rule":<String_value>,
"mail_profile":<String_value>,
"servicenow_profile":<String_value>,
"cpu_usage":<Double_value>,
"disk_count":<Integer_value>,
"memory_usage":<Double_value>,
"memory_count":<Integer_value>,
"cpu_count":<Integer_value>,
"disk_usage":<Double_value>,
"agent_ip_address":<String_value>}]}